<?php

class VocabulariesController extends Controller
{
	
	public function actionIndex()
	{
//		$http = new CHttpRequest();
//		echo $http->preferredLanguage;
		
//		echo Yii::app()->language; exit;
		
		$data = array();
		
		$oVocabularies = new Vocabularies();
		
		$oVocabulariesRowset = $oVocabularies->userId(Yii::app()->user->id)->findAll();
		
		$data['oVocabularies'] = $oVocabulariesRowset;
		
		$this->render('index', $data);
	}
}